package com.zyf.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName prescription
 */
@TableName(value ="prescription")
@Data
public class Prescription implements Serializable {
    /**
     * ID
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 病历id
     */
    private Integer registerId;

    /**
     * 药品id
     */
    private Integer drugId;

    /**
     * 用法用量频次
     */
    private String drugUsage;

    /**
     * 数量
     */
    private String drugNumber;

    /**
     * 开立时间
     */
    private Date creationTime = new Date();

    /**
     * 状态
     */
    private String drugState;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}